package com.atlansheng.rocketmqdemoboot.demos.consumer;

import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.annotation.SelectorType;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * @ClassName: TagConsumer
 * @Description:
 * @Date 2024/03/05 10:40
 * @Author songshaoqiu
 **/
@Slf4j
// @RocketMQMessageListener(topic = "java1234-filter-rocketmq",consumerGroup ="tagConsumer" ,selectorExpression = "TAG1 || TAG2",selectorType = SelectorType.TAG)
@Component
public class TagConsumer implements RocketMQListener<String> {
    @Override
    public void onMessage(String message) {
        log.info("消费消息{}",message);
    }
}
